function [ ] = createCombLegend( figs, text)

%% fig 1
figure(figs(1))
subplot(3,1,2);
legend(text(1:end),'Location','SouthEast');
legend('boxoff');

%% fig 2
figure(figs(2))
subplot(3,1,2);
legend(text{[1:end-3]},'Location','NorthEast');
legend('boxoff');

%% fig 3
figure(figs(3))
subplot(3,1,2);
legend(text{[1:end-3,end-1,end]},'Location','NorthEast');
legend('boxoff');

%% fig 4
figure(figs(4));
legend(text{1:end-2},'Location','NorthEast');
legend('boxoff');

%% fig 5
figure(figs(5));
subplot(3,1,1);
legend(text{1:end-3},'Location','NorthWest');
legend('boxoff');

%% fig 6
if(length(figs)==6)
    return
end
figure(figs(6))
subplot(3,2,3)
legend(text,'Location','NorthEast');
legend('boxoff');

%% fig 7
if(length(figs)==6)
    return
end
figure(figs(7))
subplot(3,2,2)
legend(text{[1:end-3]},'Location','NorthEast');
legend('boxoff');

%% fig8
if(length(figs)==7)
    return
end
figure(figs(8))
subplot(6,2,3)
legend(text,'Location','West');
legend('boxoff');
end

